#!/bin/bash



if [ -z "$1" ]; then
echo 0. specify [s]lackware or [a]pt
exit
fi

echo 1. Cancello build
rm build -rf

if [ "$1" == "s" ]; then
echo 2. Linko CMakeLists-Slack.txt
  rm CMakeLists.txt
  cp CMakeLists-Slack.txt CMakeLists.txt
fi
if [ "$1" == "a" ]; then
echo 2. Linko CMakeList-Apt.txt
  rm CMakeLists.txt
  cp CMakeLists-Apt.txt CMakeLists.txt
fi

mkdir build && cd build && cmake .. && make -j5 && ./Kleen
